package com.ocom.company.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.master.EntityCompanyRole;
import com.ocom.common.vo.company.CompanyRoleListVo;

import java.util.List;


public interface CompanyRoleService extends IService<EntityCompanyRole> {

    public List<EntityCompanyRole> getCompanyRoleList(Long companyId);

    public Boolean addCompanyRole(Long companyId, EntityCompanyRole entityCompanyRole);

    public Boolean modifyCompanyRole(Long companyId, Long roleId, String roleName);

    public Boolean delCompanyRole(Long companyId, Long roleId);

    public Integer countCompanyRole(Long companyId, Long roleId, String roleName, int footwork);

    public List<CompanyRoleListVo> getCompanyRole(Long companyId, Long roleId);

    EntityCompanyRole getComRole(Long  comId,Long roleId);

    List<EntityCompanyRole> getByParentRole(Integer parentRole);
}
